#include <iostream>
#include <set>
using namespace std;
int main()
{
    // 请在此输入您的代码
    int a = 1, b = 2;
    set<pair<double,double>> st;
    for(int i = 0 ; i <= a; ++i){
        for(int j = 0 ; j <= b ; ++j){
            for(int i2 = 0 ; i2 <= a; ++i2){
                for(int j2 = 0 ; j2 <= b ; ++j2){
                    if(i == i2 && j == j2) continue;
                    if (i2 - i == 0) continue;
                    double k = (j2-j)/double(i2-i);
                    double b = j - i * k;
                    if(st.find({k,b}) == st.end())
                    {
                        st.insert({k,b});
                    }
                }
            }
        }
    }
    cout << st.size() + a + 1<<endl;
    return 0;
}